<!--#index.html-->
<!--body-->
<script>
    $(function() {
        $("#form").ajaxFormEx(function(data) {
            if(data.msg) {
                alert(data.msg)
            } else {
                alert('保存成功');
                window.location.href = "category.html?id=" + data.id
            }
        })
    })
</script>
<form action="category.update" method="post" id="form">
    版面分类ID：<input readonly="readonly" name="category.id" value="${category.id}"/><br/>
    版面分类名称：<input name="category.name" value="${category.name}"/><br/>
    排序号：<input name="category.seq" value="${category.seq}"/><br/>
    简要介绍：<br/>
    <textarea rows="10" cols="50" name="category.remark">${category.remark}</textarea>
    <br/>
    <input type="submit" value="保存"/>
</form>
<div w:="category.id!=0">
版面列表：
<table border="1">
    <tr>
        <th>版面名称</th>
        <th>排序号</th>
    </tr>
    <tr w:b="category.boards">
        <td><a href="board.html?id=${b.id}">${b.name}</a></td>
        <td>${b.seq}</td>
    </tr>
</table>
<a href="board.html?boardCategoryId=${category.id}">新建版面</a>
</div>
<!--body end-->
<!--#index.html end-->
